<?
if(isset($group_menu[$menu]["submenu"])) {
  echo "<div id='submenu'>";
  for($i=0; $i < count($group_menu[$menu]["submenu"]); $i++) {
      $menu_page = $group_menu[$menu]["submenu"][$i];
      if($user->getRole() < $pages[$menu_page]["access"]) continue;
      echo "<a class='button preloader' href='".redirect_str($menu_page)."'>".$pages[$menu_page]["menu_title"]."</a>";
  }
  echo "</div>";
}
?>
